<ion-view view-title="站内信" class="message">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	<!--通过副标题来定位-->
	<div class="bar bar-subheader line-bottom padding-0">
		<!--描述：顶部模块{{data.unread_count}}、{{data.mail_count}}-->
		<div class="row top margin-right-10-my">
			<div class="col padding-0" on-tap="activeTab(0)" ng-class="selectIndex==0?(issue_type==1?'top-activated_buyer':'top-activated'):''">
				未读
			</div>
			<div class="col padding-0" on-tap="activeTab(1)" ng-class="selectIndex==1?(issue_type==1?'top-activated_buyer':'top-activated'):''">
				全部
			</div>
		</div> 
	</div>
	
<!--描述：滑动块-->
<ion-content class="scroll-content has-header has-subheader">
<ion-slide-box delegate-handle="tab-handle" on-touch="onTouch()" on-release="onRelease()" draw-slide="false" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
  <!--描述：1、未读-->
	<ion-slide>	
		<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="list">
				<li class="item item-icon-right" ng-repeat="msg in data.list[0].mails" on-tap="onshow_messagedetail(msg.mail_id)">
					<img ng-if="issue_type==1" src="{{msg.isCheckIcon?'./img/guilin/other/centerout_gx.png':'./img/guilin/other/centerout_no_gx.png'}}" class="check" on-tap="setupCheck($event,false,$index)"/>
					<img ng-if="issue_type==2" src="{{msg.isCheckIcon?'./img/guilin/other/seller_gx.png':'./img/guilin/other/seller_no_gx.png'}}" class="check" on-tap="setupCheck($event,false,$index)"/>
					{{msg.mail_title}}
					<p class="time">{{msg.send_time}}</p>
					<i class="icon ion-ios-arrow-right jt"></i>
				</li>
			</div>
			<ion-infinite-scroll ng-if="!isLoad && !data.list[0].isend" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
		</ion-scroll>
	</ion-slide>  


  <!--描述：2、全部-->
	<ion-slide>	
		<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="list">
				<li class="item item-icon-right" ng-repeat="msg in data.list[1].mails" on-tap="onshow_messagedetail(msg.mail_id)">
					<img ng-if="issue_type==1" src="{{msg.isCheckIcon?'./img/guilin/other/centerout_gx.png':'./img/guilin/other/centerout_no_gx.png'}}" class="check" on-tap="setupCheck($event,false,$index)"/>
					<img ng-if="issue_type==2" src="{{msg.isCheckIcon?'./img/guilin/other/seller_gx.png':'./img/guilin/other/seller_no_gx.png'}}" class="check" on-tap="setupCheck($event,false,$index)"/>
					{{msg.mail_title}}
					<p class="time">{{msg.send_time}}</p>
					<i class="icon ion-ios-arrow-right jt"></i>
				</li>
			</div>
			<ion-infinite-scroll ng-if="!isLoad && !data.list[1].isend" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
		</ion-scroll>
	</ion-slide>  
	</ion-content>
	
	<!--底部导航-->
	<div class="bar bar-footer padding-0">
		<img ng-if="issue_type==1" src="{{isCheckIconAll?'./img/guilin/other/centerout_gx.png':'./img/guilin/other/centerout_no_gx.png'}}" on-tap="setupCheck($event,true)"/>
		<img ng-if="issue_type==2" src="{{isCheckIconAll?'./img/guilin/other/seller_gx.png':'./img/guilin/other/seller_no_gx.png'}}" on-tap="setupCheck($event,true)"/><span class="allCheck">全选</span>
		<div class="btn" ng-class="issue_type==1?'red_buyer':'blue_seller'" on-tap="confirmDel()">删除</div>
		<div class="btn" ng-class="issue_type==1?'red_buyer':'blue_seller'" on-tap="do_marked()" ng-if="selectIndex==0" style="right: 84px;">标为已读</div>
	</div>
</ion-view>